package com.runfast.waimai.dao.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class RunfastBusinessDailyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RunfastBusinessDailyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andBusinessIdIsNull() {
            addCriterion("business_id is null");
            return (Criteria) this;
        }

        public Criteria andBusinessIdIsNotNull() {
            addCriterion("business_id is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessIdEqualTo(Integer value) {
            addCriterion("business_id =", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotEqualTo(Integer value) {
            addCriterion("business_id <>", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdGreaterThan(Integer value) {
            addCriterion("business_id >", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("business_id >=", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdLessThan(Integer value) {
            addCriterion("business_id <", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdLessThanOrEqualTo(Integer value) {
            addCriterion("business_id <=", value, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdIn(List<Integer> values) {
            addCriterion("business_id in", values, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotIn(List<Integer> values) {
            addCriterion("business_id not in", values, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdBetween(Integer value1, Integer value2) {
            addCriterion("business_id between", value1, value2, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessIdNotBetween(Integer value1, Integer value2) {
            addCriterion("business_id not between", value1, value2, "businessId");
            return (Criteria) this;
        }

        public Criteria andBusinessNameIsNull() {
            addCriterion("business_name is null");
            return (Criteria) this;
        }

        public Criteria andBusinessNameIsNotNull() {
            addCriterion("business_name is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessNameEqualTo(String value) {
            addCriterion("business_name =", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotEqualTo(String value) {
            addCriterion("business_name <>", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameGreaterThan(String value) {
            addCriterion("business_name >", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameGreaterThanOrEqualTo(String value) {
            addCriterion("business_name >=", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameLessThan(String value) {
            addCriterion("business_name <", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameLessThanOrEqualTo(String value) {
            addCriterion("business_name <=", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameLike(String value) {
            addCriterion("business_name like", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotLike(String value) {
            addCriterion("business_name not like", value, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameIn(List<String> values) {
            addCriterion("business_name in", values, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotIn(List<String> values) {
            addCriterion("business_name not in", values, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameBetween(String value1, String value2) {
            addCriterion("business_name between", value1, value2, "businessName");
            return (Criteria) this;
        }

        public Criteria andBusinessNameNotBetween(String value1, String value2) {
            addCriterion("business_name not between", value1, value2, "businessName");
            return (Criteria) this;
        }

        public Criteria andAgentIdIsNull() {
            addCriterion("agent_id is null");
            return (Criteria) this;
        }

        public Criteria andAgentIdIsNotNull() {
            addCriterion("agent_id is not null");
            return (Criteria) this;
        }

        public Criteria andAgentIdEqualTo(Integer value) {
            addCriterion("agent_id =", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdNotEqualTo(Integer value) {
            addCriterion("agent_id <>", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdGreaterThan(Integer value) {
            addCriterion("agent_id >", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("agent_id >=", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdLessThan(Integer value) {
            addCriterion("agent_id <", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdLessThanOrEqualTo(Integer value) {
            addCriterion("agent_id <=", value, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdIn(List<Integer> values) {
            addCriterion("agent_id in", values, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdNotIn(List<Integer> values) {
            addCriterion("agent_id not in", values, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdBetween(Integer value1, Integer value2) {
            addCriterion("agent_id between", value1, value2, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("agent_id not between", value1, value2, "agentId");
            return (Criteria) this;
        }

        public Criteria andAgentNameIsNull() {
            addCriterion("agent_name is null");
            return (Criteria) this;
        }

        public Criteria andAgentNameIsNotNull() {
            addCriterion("agent_name is not null");
            return (Criteria) this;
        }

        public Criteria andAgentNameEqualTo(String value) {
            addCriterion("agent_name =", value, "agentName");
            return (Criteria) this;
        }

        public Criteria andAgentNameNotEqualTo(String value) {
            addCriterion("agent_name <>", value, "agentName");
            return (Criteria) this;
        }

        public Criteria andAgentNameGreaterThan(String value) {
            addCriterion("agent_name >", value, "agentName");
            return (Criteria) this;
        }

        public Criteria andAgentNameGreaterThanOrEqualTo(String value) {
            addCriterion("agent_name >=", value, "agentName");
            return (Criteria) this;
        }

        public Criteria andAgentNameLessThan(String value) {
            addCriterion("agent_name <", value, "agentName");
            return (Criteria) this;
        }

        public Criteria andAgentNameLessThanOrEqualTo(String value) {
            addCriterion("agent_name <=", value, "agentName");
            return (Criteria) this;
        }

        public Criteria andAgentNameLike(String value) {
            addCriterion("agent_name like", value, "agentName");
            return (Criteria) this;
        }

        public Criteria andAgentNameNotLike(String value) {
            addCriterion("agent_name not like", value, "agentName");
            return (Criteria) this;
        }

        public Criteria andAgentNameIn(List<String> values) {
            addCriterion("agent_name in", values, "agentName");
            return (Criteria) this;
        }

        public Criteria andAgentNameNotIn(List<String> values) {
            addCriterion("agent_name not in", values, "agentName");
            return (Criteria) this;
        }

        public Criteria andAgentNameBetween(String value1, String value2) {
            addCriterion("agent_name between", value1, value2, "agentName");
            return (Criteria) this;
        }

        public Criteria andAgentNameNotBetween(String value1, String value2) {
            addCriterion("agent_name not between", value1, value2, "agentName");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(Date value) {
            addCriterionForJDBCDate("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(Date value) {
            addCriterionForJDBCDate("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(Date value) {
            addCriterionForJDBCDate("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<Date> values) {
            addCriterionForJDBCDate("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("date not between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andOrderQuantityIsNull() {
            addCriterion("order_quantity is null");
            return (Criteria) this;
        }

        public Criteria andOrderQuantityIsNotNull() {
            addCriterion("order_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andOrderQuantityEqualTo(Integer value) {
            addCriterion("order_quantity =", value, "orderQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderQuantityNotEqualTo(Integer value) {
            addCriterion("order_quantity <>", value, "orderQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderQuantityGreaterThan(Integer value) {
            addCriterion("order_quantity >", value, "orderQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_quantity >=", value, "orderQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderQuantityLessThan(Integer value) {
            addCriterion("order_quantity <", value, "orderQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("order_quantity <=", value, "orderQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderQuantityIn(List<Integer> values) {
            addCriterion("order_quantity in", values, "orderQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderQuantityNotIn(List<Integer> values) {
            addCriterion("order_quantity not in", values, "orderQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderQuantityBetween(Integer value1, Integer value2) {
            addCriterion("order_quantity between", value1, value2, "orderQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("order_quantity not between", value1, value2, "orderQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIsNull() {
            addCriterion("order_amount is null");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIsNotNull() {
            addCriterion("order_amount is not null");
            return (Criteria) this;
        }

        public Criteria andOrderAmountEqualTo(BigDecimal value) {
            addCriterion("order_amount =", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotEqualTo(BigDecimal value) {
            addCriterion("order_amount <>", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountGreaterThan(BigDecimal value) {
            addCriterion("order_amount >", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("order_amount >=", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountLessThan(BigDecimal value) {
            addCriterion("order_amount <", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("order_amount <=", value, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountIn(List<BigDecimal> values) {
            addCriterion("order_amount in", values, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotIn(List<BigDecimal> values) {
            addCriterion("order_amount not in", values, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_amount between", value1, value2, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_amount not between", value1, value2, "orderAmount");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiQuantityIsNull() {
            addCriterion("order_waimai_quantity is null");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiQuantityIsNotNull() {
            addCriterion("order_waimai_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiQuantityEqualTo(Integer value) {
            addCriterion("order_waimai_quantity =", value, "orderWaimaiQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiQuantityNotEqualTo(Integer value) {
            addCriterion("order_waimai_quantity <>", value, "orderWaimaiQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiQuantityGreaterThan(Integer value) {
            addCriterion("order_waimai_quantity >", value, "orderWaimaiQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_waimai_quantity >=", value, "orderWaimaiQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiQuantityLessThan(Integer value) {
            addCriterion("order_waimai_quantity <", value, "orderWaimaiQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("order_waimai_quantity <=", value, "orderWaimaiQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiQuantityIn(List<Integer> values) {
            addCriterion("order_waimai_quantity in", values, "orderWaimaiQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiQuantityNotIn(List<Integer> values) {
            addCriterion("order_waimai_quantity not in", values, "orderWaimaiQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiQuantityBetween(Integer value1, Integer value2) {
            addCriterion("order_waimai_quantity between", value1, value2, "orderWaimaiQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("order_waimai_quantity not between", value1, value2, "orderWaimaiQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiAmountIsNull() {
            addCriterion("order_waimai_amount is null");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiAmountIsNotNull() {
            addCriterion("order_waimai_amount is not null");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiAmountEqualTo(BigDecimal value) {
            addCriterion("order_waimai_amount =", value, "orderWaimaiAmount");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiAmountNotEqualTo(BigDecimal value) {
            addCriterion("order_waimai_amount <>", value, "orderWaimaiAmount");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiAmountGreaterThan(BigDecimal value) {
            addCriterion("order_waimai_amount >", value, "orderWaimaiAmount");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("order_waimai_amount >=", value, "orderWaimaiAmount");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiAmountLessThan(BigDecimal value) {
            addCriterion("order_waimai_amount <", value, "orderWaimaiAmount");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("order_waimai_amount <=", value, "orderWaimaiAmount");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiAmountIn(List<BigDecimal> values) {
            addCriterion("order_waimai_amount in", values, "orderWaimaiAmount");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiAmountNotIn(List<BigDecimal> values) {
            addCriterion("order_waimai_amount not in", values, "orderWaimaiAmount");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_waimai_amount between", value1, value2, "orderWaimaiAmount");
            return (Criteria) this;
        }

        public Criteria andOrderWaimaiAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_waimai_amount not between", value1, value2, "orderWaimaiAmount");
            return (Criteria) this;
        }

        public Criteria andOrderCancelQuantityIsNull() {
            addCriterion("order_cancel_quantity is null");
            return (Criteria) this;
        }

        public Criteria andOrderCancelQuantityIsNotNull() {
            addCriterion("order_cancel_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andOrderCancelQuantityEqualTo(Integer value) {
            addCriterion("order_cancel_quantity =", value, "orderCancelQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderCancelQuantityNotEqualTo(Integer value) {
            addCriterion("order_cancel_quantity <>", value, "orderCancelQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderCancelQuantityGreaterThan(Integer value) {
            addCriterion("order_cancel_quantity >", value, "orderCancelQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderCancelQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_cancel_quantity >=", value, "orderCancelQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderCancelQuantityLessThan(Integer value) {
            addCriterion("order_cancel_quantity <", value, "orderCancelQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderCancelQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("order_cancel_quantity <=", value, "orderCancelQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderCancelQuantityIn(List<Integer> values) {
            addCriterion("order_cancel_quantity in", values, "orderCancelQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderCancelQuantityNotIn(List<Integer> values) {
            addCriterion("order_cancel_quantity not in", values, "orderCancelQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderCancelQuantityBetween(Integer value1, Integer value2) {
            addCriterion("order_cancel_quantity between", value1, value2, "orderCancelQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderCancelQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("order_cancel_quantity not between", value1, value2, "orderCancelQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderCancelAmountIsNull() {
            addCriterion("order_cancel_amount is null");
            return (Criteria) this;
        }

        public Criteria andOrderCancelAmountIsNotNull() {
            addCriterion("order_cancel_amount is not null");
            return (Criteria) this;
        }

        public Criteria andOrderCancelAmountEqualTo(BigDecimal value) {
            addCriterion("order_cancel_amount =", value, "orderCancelAmount");
            return (Criteria) this;
        }

        public Criteria andOrderCancelAmountNotEqualTo(BigDecimal value) {
            addCriterion("order_cancel_amount <>", value, "orderCancelAmount");
            return (Criteria) this;
        }

        public Criteria andOrderCancelAmountGreaterThan(BigDecimal value) {
            addCriterion("order_cancel_amount >", value, "orderCancelAmount");
            return (Criteria) this;
        }

        public Criteria andOrderCancelAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("order_cancel_amount >=", value, "orderCancelAmount");
            return (Criteria) this;
        }

        public Criteria andOrderCancelAmountLessThan(BigDecimal value) {
            addCriterion("order_cancel_amount <", value, "orderCancelAmount");
            return (Criteria) this;
        }

        public Criteria andOrderCancelAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("order_cancel_amount <=", value, "orderCancelAmount");
            return (Criteria) this;
        }

        public Criteria andOrderCancelAmountIn(List<BigDecimal> values) {
            addCriterion("order_cancel_amount in", values, "orderCancelAmount");
            return (Criteria) this;
        }

        public Criteria andOrderCancelAmountNotIn(List<BigDecimal> values) {
            addCriterion("order_cancel_amount not in", values, "orderCancelAmount");
            return (Criteria) this;
        }

        public Criteria andOrderCancelAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_cancel_amount between", value1, value2, "orderCancelAmount");
            return (Criteria) this;
        }

        public Criteria andOrderCancelAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_cancel_amount not between", value1, value2, "orderCancelAmount");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseQuantityIsNull() {
            addCriterion("order_refuse_quantity is null");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseQuantityIsNotNull() {
            addCriterion("order_refuse_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseQuantityEqualTo(Integer value) {
            addCriterion("order_refuse_quantity =", value, "orderRefuseQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseQuantityNotEqualTo(Integer value) {
            addCriterion("order_refuse_quantity <>", value, "orderRefuseQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseQuantityGreaterThan(Integer value) {
            addCriterion("order_refuse_quantity >", value, "orderRefuseQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_refuse_quantity >=", value, "orderRefuseQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseQuantityLessThan(Integer value) {
            addCriterion("order_refuse_quantity <", value, "orderRefuseQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("order_refuse_quantity <=", value, "orderRefuseQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseQuantityIn(List<Integer> values) {
            addCriterion("order_refuse_quantity in", values, "orderRefuseQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseQuantityNotIn(List<Integer> values) {
            addCriterion("order_refuse_quantity not in", values, "orderRefuseQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseQuantityBetween(Integer value1, Integer value2) {
            addCriterion("order_refuse_quantity between", value1, value2, "orderRefuseQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("order_refuse_quantity not between", value1, value2, "orderRefuseQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseAmountIsNull() {
            addCriterion("order_refuse_amount is null");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseAmountIsNotNull() {
            addCriterion("order_refuse_amount is not null");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseAmountEqualTo(BigDecimal value) {
            addCriterion("order_refuse_amount =", value, "orderRefuseAmount");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseAmountNotEqualTo(BigDecimal value) {
            addCriterion("order_refuse_amount <>", value, "orderRefuseAmount");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseAmountGreaterThan(BigDecimal value) {
            addCriterion("order_refuse_amount >", value, "orderRefuseAmount");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("order_refuse_amount >=", value, "orderRefuseAmount");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseAmountLessThan(BigDecimal value) {
            addCriterion("order_refuse_amount <", value, "orderRefuseAmount");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("order_refuse_amount <=", value, "orderRefuseAmount");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseAmountIn(List<BigDecimal> values) {
            addCriterion("order_refuse_amount in", values, "orderRefuseAmount");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseAmountNotIn(List<BigDecimal> values) {
            addCriterion("order_refuse_amount not in", values, "orderRefuseAmount");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_refuse_amount between", value1, value2, "orderRefuseAmount");
            return (Criteria) this;
        }

        public Criteria andOrderRefuseAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("order_refuse_amount not between", value1, value2, "orderRefuseAmount");
            return (Criteria) this;
        }

        public Criteria andOrderOvertimeQuantityIsNull() {
            addCriterion("order_overtime_quantity is null");
            return (Criteria) this;
        }

        public Criteria andOrderOvertimeQuantityIsNotNull() {
            addCriterion("order_overtime_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andOrderOvertimeQuantityEqualTo(Integer value) {
            addCriterion("order_overtime_quantity =", value, "orderOvertimeQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderOvertimeQuantityNotEqualTo(Integer value) {
            addCriterion("order_overtime_quantity <>", value, "orderOvertimeQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderOvertimeQuantityGreaterThan(Integer value) {
            addCriterion("order_overtime_quantity >", value, "orderOvertimeQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderOvertimeQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_overtime_quantity >=", value, "orderOvertimeQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderOvertimeQuantityLessThan(Integer value) {
            addCriterion("order_overtime_quantity <", value, "orderOvertimeQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderOvertimeQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("order_overtime_quantity <=", value, "orderOvertimeQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderOvertimeQuantityIn(List<Integer> values) {
            addCriterion("order_overtime_quantity in", values, "orderOvertimeQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderOvertimeQuantityNotIn(List<Integer> values) {
            addCriterion("order_overtime_quantity not in", values, "orderOvertimeQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderOvertimeQuantityBetween(Integer value1, Integer value2) {
            addCriterion("order_overtime_quantity between", value1, value2, "orderOvertimeQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderOvertimeQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("order_overtime_quantity not between", value1, value2, "orderOvertimeQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderNegetiveCommentQuantityIsNull() {
            addCriterion("order_negetive_comment_quantity is null");
            return (Criteria) this;
        }

        public Criteria andOrderNegetiveCommentQuantityIsNotNull() {
            addCriterion("order_negetive_comment_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andOrderNegetiveCommentQuantityEqualTo(Integer value) {
            addCriterion("order_negetive_comment_quantity =", value, "orderNegetiveCommentQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderNegetiveCommentQuantityNotEqualTo(Integer value) {
            addCriterion("order_negetive_comment_quantity <>", value, "orderNegetiveCommentQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderNegetiveCommentQuantityGreaterThan(Integer value) {
            addCriterion("order_negetive_comment_quantity >", value, "orderNegetiveCommentQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderNegetiveCommentQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("order_negetive_comment_quantity >=", value, "orderNegetiveCommentQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderNegetiveCommentQuantityLessThan(Integer value) {
            addCriterion("order_negetive_comment_quantity <", value, "orderNegetiveCommentQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderNegetiveCommentQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("order_negetive_comment_quantity <=", value, "orderNegetiveCommentQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderNegetiveCommentQuantityIn(List<Integer> values) {
            addCriterion("order_negetive_comment_quantity in", values, "orderNegetiveCommentQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderNegetiveCommentQuantityNotIn(List<Integer> values) {
            addCriterion("order_negetive_comment_quantity not in", values, "orderNegetiveCommentQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderNegetiveCommentQuantityBetween(Integer value1, Integer value2) {
            addCriterion("order_negetive_comment_quantity between", value1, value2, "orderNegetiveCommentQuantity");
            return (Criteria) this;
        }

        public Criteria andOrderNegetiveCommentQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("order_negetive_comment_quantity not between", value1, value2, "orderNegetiveCommentQuantity");
            return (Criteria) this;
        }

        public Criteria andActivityCostIsNull() {
            addCriterion("activity_cost is null");
            return (Criteria) this;
        }

        public Criteria andActivityCostIsNotNull() {
            addCriterion("activity_cost is not null");
            return (Criteria) this;
        }

        public Criteria andActivityCostEqualTo(BigDecimal value) {
            addCriterion("activity_cost =", value, "activityCost");
            return (Criteria) this;
        }

        public Criteria andActivityCostNotEqualTo(BigDecimal value) {
            addCriterion("activity_cost <>", value, "activityCost");
            return (Criteria) this;
        }

        public Criteria andActivityCostGreaterThan(BigDecimal value) {
            addCriterion("activity_cost >", value, "activityCost");
            return (Criteria) this;
        }

        public Criteria andActivityCostGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("activity_cost >=", value, "activityCost");
            return (Criteria) this;
        }

        public Criteria andActivityCostLessThan(BigDecimal value) {
            addCriterion("activity_cost <", value, "activityCost");
            return (Criteria) this;
        }

        public Criteria andActivityCostLessThanOrEqualTo(BigDecimal value) {
            addCriterion("activity_cost <=", value, "activityCost");
            return (Criteria) this;
        }

        public Criteria andActivityCostIn(List<BigDecimal> values) {
            addCriterion("activity_cost in", values, "activityCost");
            return (Criteria) this;
        }

        public Criteria andActivityCostNotIn(List<BigDecimal> values) {
            addCriterion("activity_cost not in", values, "activityCost");
            return (Criteria) this;
        }

        public Criteria andActivityCostBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("activity_cost between", value1, value2, "activityCost");
            return (Criteria) this;
        }

        public Criteria andActivityCostNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("activity_cost not between", value1, value2, "activityCost");
            return (Criteria) this;
        }

        public Criteria andNewCustomerQuantityIsNull() {
            addCriterion("new_customer_quantity is null");
            return (Criteria) this;
        }

        public Criteria andNewCustomerQuantityIsNotNull() {
            addCriterion("new_customer_quantity is not null");
            return (Criteria) this;
        }

        public Criteria andNewCustomerQuantityEqualTo(Integer value) {
            addCriterion("new_customer_quantity =", value, "newCustomerQuantity");
            return (Criteria) this;
        }

        public Criteria andNewCustomerQuantityNotEqualTo(Integer value) {
            addCriterion("new_customer_quantity <>", value, "newCustomerQuantity");
            return (Criteria) this;
        }

        public Criteria andNewCustomerQuantityGreaterThan(Integer value) {
            addCriterion("new_customer_quantity >", value, "newCustomerQuantity");
            return (Criteria) this;
        }

        public Criteria andNewCustomerQuantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("new_customer_quantity >=", value, "newCustomerQuantity");
            return (Criteria) this;
        }

        public Criteria andNewCustomerQuantityLessThan(Integer value) {
            addCriterion("new_customer_quantity <", value, "newCustomerQuantity");
            return (Criteria) this;
        }

        public Criteria andNewCustomerQuantityLessThanOrEqualTo(Integer value) {
            addCriterion("new_customer_quantity <=", value, "newCustomerQuantity");
            return (Criteria) this;
        }

        public Criteria andNewCustomerQuantityIn(List<Integer> values) {
            addCriterion("new_customer_quantity in", values, "newCustomerQuantity");
            return (Criteria) this;
        }

        public Criteria andNewCustomerQuantityNotIn(List<Integer> values) {
            addCriterion("new_customer_quantity not in", values, "newCustomerQuantity");
            return (Criteria) this;
        }

        public Criteria andNewCustomerQuantityBetween(Integer value1, Integer value2) {
            addCriterion("new_customer_quantity between", value1, value2, "newCustomerQuantity");
            return (Criteria) this;
        }

        public Criteria andNewCustomerQuantityNotBetween(Integer value1, Integer value2) {
            addCriterion("new_customer_quantity not between", value1, value2, "newCustomerQuantity");
            return (Criteria) this;
        }

        public Criteria andNewCustomerAmountIsNull() {
            addCriterion("new_customer_amount is null");
            return (Criteria) this;
        }

        public Criteria andNewCustomerAmountIsNotNull() {
            addCriterion("new_customer_amount is not null");
            return (Criteria) this;
        }

        public Criteria andNewCustomerAmountEqualTo(BigDecimal value) {
            addCriterion("new_customer_amount =", value, "newCustomerAmount");
            return (Criteria) this;
        }

        public Criteria andNewCustomerAmountNotEqualTo(BigDecimal value) {
            addCriterion("new_customer_amount <>", value, "newCustomerAmount");
            return (Criteria) this;
        }

        public Criteria andNewCustomerAmountGreaterThan(BigDecimal value) {
            addCriterion("new_customer_amount >", value, "newCustomerAmount");
            return (Criteria) this;
        }

        public Criteria andNewCustomerAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("new_customer_amount >=", value, "newCustomerAmount");
            return (Criteria) this;
        }

        public Criteria andNewCustomerAmountLessThan(BigDecimal value) {
            addCriterion("new_customer_amount <", value, "newCustomerAmount");
            return (Criteria) this;
        }

        public Criteria andNewCustomerAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("new_customer_amount <=", value, "newCustomerAmount");
            return (Criteria) this;
        }

        public Criteria andNewCustomerAmountIn(List<BigDecimal> values) {
            addCriterion("new_customer_amount in", values, "newCustomerAmount");
            return (Criteria) this;
        }

        public Criteria andNewCustomerAmountNotIn(List<BigDecimal> values) {
            addCriterion("new_customer_amount not in", values, "newCustomerAmount");
            return (Criteria) this;
        }

        public Criteria andNewCustomerAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("new_customer_amount between", value1, value2, "newCustomerAmount");
            return (Criteria) this;
        }

        public Criteria andNewCustomerAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("new_customer_amount not between", value1, value2, "newCustomerAmount");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}